<%@ page pageEncoding="UTF-8" %>
<%@ taglib prefix="isperp" uri="/WEB-INF/tlds/isperp.tld" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<div class="container_0 clearfix">
    <div class="box no-border">
        <div class="header">
            <h2>${pageTitle}</h2>
        </div>
        <isperp:grid url="report/reportCheckin/listDetailPub"
                     gridId="reportGrid" altRows="false" gridTitle="${pageTitle}"
                     pager="reportPager" cusFormatterActions="true" sortname="report_date" sortorder="desc"
                     cusViewUrl="report/reportCheckin/reportView" excelExportUrl="report/reportCheckin/excelExport">

            <jsp:attribute name="searchbar">
				<table class="search-table">
                    <tbody>
                    <tr>
                   		<td align="right">姓名：</td>
                        <td>
                            <input type="text" field="fullname" op="cn">
                        </td>
                        <td align="right">部门：</td>
                        <td>
                        	<input type="hidden" id="departmentPath"
								field="treenode_name_path" op="cn" />
							<isperp:treeSelector asyncLoad="false" 
								url="app/department/getTree?parentId=10132850854490010" id="departmentPathSelector" 
								name="departmentPathName" displayValue="" valueColumn="treenodeNamePath"
								valueControlId="departmentPath">
							</isperp:treeSelector>
                        </td>
                        <td align="right">
                         	   报告类型：
                        </td>
                        <td>
                            <select field="report_type" op="eq">
                                <option value="1">日报</option>
                                <option value="2">月报</option>
                                <option value="3">周报</option>
                            </select>
                        </td>
                    </tr>
                    
                    <tr>
                    	<td class="td1">年：</td>
						<td class="td2">
							<select field="year(report_date)" op="eq">
							  <option></option>
							  <option>2017</option>
							  <option>2018</option>
							  <option>2018</option>
							  <option>2019</option>
							  <option>2020</option>
							  <option>2021</option>
							  <option>2022</option>
							</select>
						</td>
						<td class="td1">月：</td>
						<td class="td2">
							<select field="month(report_date)" op="eq">
							  <option></option>
							  <option>1</option>
							  <option>2</option>
							  <option>3</option>
							  <option>4</option>
							  <option>5</option>
							  <option>6</option>
							  <option>7</option>
							  <option>8</option>
							  <option>9</option>
							  <option>10</option>
							  <option>11</option>
							  <option>12</option>
							</select>
						</td>
                    </tr>
                    </tbody>
                </table>
			</jsp:attribute>
            <jsp:body>
                <isperp:column name="id" title="id" hidden="true"></isperp:column>
                <isperp:column name="year" title="year" hidden="true"></isperp:column>
                <isperp:column name="month" title="month" hidden="true"></isperp:column>
                <isperp:column name="fullname" title="姓名" width="80">
                </isperp:column>
                <isperp:column name="treenode_name_path" title="部门" width="200">
                </isperp:column>
                <isperp:column name="report_type_name" title="报告类型" width="60">
                </isperp:column>
                
                <isperp:column name="order_num" title="接单数" width="60">
                </isperp:column>
                <isperp:column name="check_in_num" title="登记数" width="60">
                </isperp:column>
                <isperp:column name="solution_num" title="现场解决数" width="60">
                </isperp:column>
                <isperp:column name="not_finish_num" title="未完成数" width="60">
                </isperp:column>
                <isperp:column name="report_date" title="时间" width="110" isFormatterFun="true" formatter="return fmt(cellvalue);">
                </isperp:column>
            </jsp:body>
        </isperp:grid>
    </div>
</div>

<script>
function fmt(v){
	return v.split(" ")[0];
}

</script>